package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_XZQH"
 *     
*/
public class DmXzqh implements Serializable {

    /** identifier field */
    private String xzqhDm;

    /** nullable persistent field */
    private String xzqhMc;

    /** full constructor */
    public DmXzqh(String xzqhDm, String xzqhMc) {
        this.xzqhDm = xzqhDm;
        this.xzqhMc = xzqhMc;
    }

    /** default constructor */
    public DmXzqh() {
    }

    /** minimal constructor */
    public DmXzqh(String xzqhDm) {
        this.xzqhDm = xzqhDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="XZQH_DM"
     *         
     */
    public String getXzqhDm() {
        return this.xzqhDm;
    }

    public void setXzqhDm(String xzqhDm) {
        this.xzqhDm = xzqhDm;
    }

    /** 
     *            @hibernate.property
     *             column="XZQH_MC"
     *             length="30"
     *         
     */
    public String getXzqhMc() {
        return this.xzqhMc;
    }

    public void setXzqhMc(String xzqhMc) {
        this.xzqhMc = xzqhMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("xzqhDm", getXzqhDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmXzqh) ) return false;
        DmXzqh castOther = (DmXzqh) other;
        return new EqualsBuilder()
            .append(this.getXzqhDm(), castOther.getXzqhDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getXzqhDm())
            .toHashCode();
    }

}
